// 多边形弹框
<template>
  <Modal v-on:hidden="$emit('hidden')">
    <div class="rectangle">
      <!-- 弹窗点击关闭事件 -->
      <p><img src="../assets/img/polygon/02.png" alt="" class="imgBtn_close" @click="$emit('hidden')" /></p>
      <div class="modal_box flexC">
        <!-- 从父组件传递 title 值作为此组件的列表标题 -->
        <!-- <p class="colorF flex JustifyContentC" style="margin: 2.285rem 0px 1.285rem;">
            <span><img src="../assets/img/components/07.png" alt=""></span>
            <span class="rectangle_title">{{title}}</span>
        </p> -->
        <!-- 组件的内容主体 -->
        <div class="flex1"><slot></slot></div>
      </div>
    </div>
  </Modal>
</template>
<script>
import Modal from './Modal'
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  components: {
    Modal
  }
}
</script>
<style lang="scss" scoped>
.rectangle {
  width: 90%;
  height: 90%;
  position: absolute;
  top: 5%;
  left: 5%;
  background: url(../assets/img/polygon/01.png) no-repeat;
  background-size: 100% 100%;
  .imgBtn_close {
    cursor: pointer;
    position: absolute;
    top: 6.5%;
    right: 3.8%;
    z-index: 99;
  }
  .bgImg_toptitle {
    width: 100%;
    position: absolute;
    z-index: 0;
  }
  .modal_box {
    // padding:2rem 3rem 3rem 3rem;
    width: 90%;
    height: 78%;
    box-sizing: border-box;
    margin: 4.825rem auto 0;
    // .rectangle_title {
    //   font-size: 2.275rem;
    //   background: url(../assets/img/components/08.png) no-repeat;
    //   background-size: 62% 55%;
    //   background-position: bottom right;
    //   padding: 0.875rem 2.575rem;
    // }
  }
}
</style>
